{% extends 'base.html' %}
{% block title %}
    注册
{% endblock %}
{% block content %}
<div class="layui-container fly-marginTop login_register">
  <div class="fly-panel fly-panel-user" pad20>
    <div class="layui-tab layui-tab-brief login_shadow" lay-filter="user">
      <ul class="layui-tab-title tilte_width">
        <li><a href="/User/login">登录</a></li>
        <li class="layui-this">注册</li>
      </ul>
      <div class="layui-form layui-tab-content" id="LAY_ucm" style="padding: 20px 0;">
        <div class="layui-tab-item layui-show">
          <div class="layui-form layui-form-pane">
            <form method="post">
              <div class="layui-form-item">
                  <label for="username" class="layui-form-label label_width"><i class="layui-icon layui-icon-username"></i></label>
                <div class="layui-input-inline">
                  <input type="text" id="username" name="username" value="{{ username }}" class="layui-input" placeholder="用户名">
                </div>
                  <div class="layui-form-mid layui-word-aux">{{ username_error }}</div>
              </div>
              <div class="layui-form-item">
                <label for="password" class="layui-form-label label_width"><i class="layui-icon layui-icon-password"></i></label>
                <div class="layui-input-inline">
                  <input type="password" id="password" name="password" value="{{ password }}" class="layui-input" placeholder="密码">
                </div>
                <div class="layui-form-mid layui-word-aux">{{ password_error }}</div>
              </div>
              <div class="layui-form-item">
                <label for="re_password" class="layui-form-label label_width"><i class="layui-icon layui-icon-password"></i></label>
                <div class="layui-input-inline">
                  <input type="password" id="re_password" name="re_password" value="{{ re_password }}" class="layui-input" placeholder="确认密码">
                </div>
                  <div class="layui-form-mid layui-word-aux">{{ re_password_error }}</div>
              </div>
              <div class="layui-form-item login_button">
                <button class="layui-btn " lay-filter="*" lay-submit>立即注册</button>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>

</div>
{% endblock %}